<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<?php
	$url = $this->baseurl.'/images/com_retailshop/';	
	if(strlen($this->shop->image)<4)
		$img_logo = $url."noimages.jpg";
	else
		$img_logo = $url."".$this->shop->image;
?>
<center><a href="index.php?option=com_retailshop&view=myshop&shop_id=<?php echo $this->shop->id ?>"><img src="<?php echo $img_logo; ?>" width="200" height="170" /></a></center>
	<div class="info-shop">
	<p class="welcome"><?php echo $this->shop->name; ?></p>
    <h2><?php echo substrCustom($this->shop->title,0,200); ?></h2>
	<p><?php echo substrCustom($this->shop->short_description,0,400); ?></p>
	<p>
	<a id="reportflag" href="" class="call-order">
		<img src= "<?php echo $url?>anti-spam-icon.jpg" alt="Report website adult inappropriate content" width="25" height="25" />
		<strong>Report</strong><br />
	</a>
	</p>
</div>

<div id="report">
	<div id="cb-title">Report website adult inappropriate content</div>
	<div id="cb-content">
		<form name="contact_frm" method="post" action="">
			<div class="element">
				<label>Name:<span class="requierd_field"> *</span></label>
				<input name="txtname" type="text" value="">
			</div>
			<div class="element">
				<label>Content:<span class="requierd_field"> *</span></label>
				<textarea name="txtcontent" style="width: 265px; height: 75px;">
				</textarea>
			</div>
			
			<input type="submit" name="btnreport" class="submit_button_1" value="Report">
		</form>
	</div>
</div>
<script>
$('#reportflag').click(function (e) {
	$('#report').modal({minWidth:470, minHeight:210});
	return false;
});
</script>